package com.hkbigdata.transform;

import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @author liuanbo
 * @creat 2023-03-18-11:34
 * @see 2194550857@qq.com
 */
public class Flink01_TransForm_Map_Lambda {
    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        env.setParallelism(1);

        env.fromElements(1,2,3,4)
                .map(data->data*data)
                .print();
        env.execute();

    }
}
